<?php
$this->lang->load('template');
//$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.fav365.com/ball/?m=admin&c=good -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="/css/admin.css" 
type=text/css rel=stylesheet>
<script src="/js/global.js" type="text/javascript"></script>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
    <?=form_open('roles/remove','onSubmit="return checks();"');?>
      <TABLE cellSpacing=1 cellPadding=0 width="96%" align=center border=0>
        <TBODY>
          <TR>
            <TD><H1 class=title>
			<?=$this->lang->line('tpl_user').$this->lang->line('tpl_roles');?>
			</H1></TD>
          </TR>
        </TBODY>
      </TABLE>
      <TABLE class=table cellSpacing=1 cellPadding=5 width="96%" align=center 
border=0 id="checkList">
        <TBODY>
          <TR>
            <TD class=tdbg width="5%"><?=$this->lang->line('tpl_selected')?></TD>
            <TD class=tdbg width="80"><DIV align=center><STRONG><?=$this->lang->line('tpl_name');?></STRONG></DIV></TD>
			 <TD class=tdbg width="80"><DIV align=center><STRONG>说明</STRONG></DIV></TD>
            <TD class=tdbg width="15%"><DIV align=center><STRONG><?=$this->lang->line('tpl_actions')?></STRONG></DIV></TD>
          </TR>
          <?php
		  foreach($result as $key=>$val):
		  ?>
          <TR class=tr2 align=middle>
            <TD width="5%">
			<INPUT type=checkbox value=<?=$val['role_id']?> name="id[]" onClick="sets(this)">			</TD>
            <TD style="text-align:left"><?=$val['name']?></TD>
			<TD style="text-align:left"><?=$val['description']?></TD>
            <TD><A href="<?=site_url(array('roles','edit',$val['role_id']));?>"><?=$this->lang->line('tpl_act_edit')?></A></TD>
          </TR>
          <?php
		  endforeach;
		  ?>
          <TR class=tr_fff>
            <TD align=left colSpan=6>
				<INPUT class=btn onClick="CheckAll('checkList',true)" type=button value="<?=$this->lang->line('tpl_selectall')?>">
              <INPUT class=btn onClick="CheckAll('checkList',false)" type=button value="<?=$this->lang->line('tpl_cancel')?>">
              <INPUT class=btn  type="submit" value="<?=$this->lang->line('tpl_act_remove')?>">
			
              <INPUT class=btn onClick="window.location.href='<?=site_url('roles/add')?>'" type=button value="<?=$this->lang->line('tpl_act_add')?>">
              <INPUT 
      id=h_delid type=hidden name=h_delid>            </TD>
          </TR>
        </TBODY>
      </TABLE>
    </FORM>
  </DIV>
  <DIV class=admin_boxbottom> </DIV>
</DIV>
</BODY>
</HTML>
